export function toNumber(currentValue, oldValue) {
  const value = Number(currentValue)
  if (Number.isInteger(value)) {
    return value
  }
  return oldValue
}

export function UPDATE_STATE(state, payload = {}) {
  return {
    ...state,
    ...payload,
  }
}

export async function fetchUser() {
  await Promise.resolve()
}

export function _() {
  return {}
}